{template header}
<div class="midder">

<div class="mc">

<div class="bbox">
<h1>编辑帖子</h1>
<div class="bc">
<form method="POST" action="{SITE_URL}index.php?app=group&ac=topicedit&ts=do" enctype="multipart/form-data">
<table class="commtable">

<tr><th>标题：</th>
    <td><input style="padding:3px 0;width:600px;" type="text" value="{$strTopic[title]}" maxlength="100" size="50" name="title" gtbfieldid="2"></td></tr>

{if $arrGroupType}
<tr><th>帖子分类：</th><td>
<select name="typeid">
<option {if $strTopic[typeid]=='0'}selected="select"{/if} value="0">请选择</option>
{loop $arrGroupType $key $item}
<option {if $item[typeid]==$strTopic[typeid]}selected="select"{/if} value="{$item[typeid]}">{$item[typename]}</option>
{/loop}
</select></td></tr>
{/if}

    <tr>
	<th valign="top">
内容：
    </th><td>
<script type="text/plain" id="tseditor" name="content">
{$strTopic['content']}
</script>
</td>
</tr>

<tr><th>标签:</th><td><input style="width:250px;" type="text" name="tag" value="{$strTopic['tag']}" /> (多个标签请用,号分割)</td></tr>
	
	<tr><th>评论：</th><td><input type="radio" {if $strTopic[iscomment]=='0'}checked="select"{/if}   name="iscomment" value="0" />允许 <input type="radio" {if $strTopic[iscomment]=='1'}checked="select"{/if}  name="iscomment" value="1" />不允许</td></tr>
	
    <tr><th></th><td>
	
	<input type="hidden" name="topicid" value="{$strTopic[topicid]}" />
	
	<input type="hidden" name="token" value="{$_SESSION['token']}" />
	
	<button class="btn btn-success" type="submit">修改</button>
	
	<a href="{tsUrl('group','topic',array('id'=>$strTopic[topicid]))}">返回</a>
	</td></tr>
	
</table>
</form>
</div>
</div>

</div>
</div>
{php doAction('tseditor')}
{template footer}